file(GLOB_RECURSE _SRC_LIST
    CONFIGURE_DEPENDS  # 自动追踪新增文件
    ${CMAKE_CURRENT_SOURCE_DIR}/[!.]*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/[!.]*.h
)
#

# 编译静态库
# set(libname_static "zlmediaz")
# add_library(libname_static STATIC ${_SRC_LIST})
# target_compile_options(libname_static PRIVATE ${COMPILE_OPTIONS_DEFAULT})
# target_include_directories(libname_static PUBLIC 
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)


# set(SHARED_LIB "zlmediaz")
# set(PROJECT_VERSION "1.0.0")
# set(PROJECT_SOVERSION "1")
# message(STATUS "编译动态库: ${SHARED_LIB}")
# message(STATUS "Project version: ${PROJECT_VERSION}")
# message(STATUS "Shared object version: ${PROJECT_SOVERSION}")
    
# add_library(${SHARED_LIB} SHARED ${_SRC_LIST})
# # 设置版本和符号可见性
# set_target_properties(${SHARED_LIB} PROPERTIES
#     VERSION ${PROJECT_VERSION}
#     SOVERSION ${PROJECT_SOVERSION}
#     POSITION_INDEPENDENT_CODE ON
#     CXX_VISIBILITY_PRESET hidden
# )
# target_compile_features(${SHARED_LIB} PUBLIC ${REQUIRED_FEATURES})

# target_include_directories(${SHARED_LIB} PUBLIC
#         $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
#         $<BUILD_INTERFACE:${LIBZ698_INCLUDE_DIR}>
# )
# list(APPEND CMAKE_TARGETS ${SHARED_LIB})


# _SRC_LIST

set(COMPILE_DEFINITIONS ${MK_COMPILE_DEFINITIONS})
set(ExeFileN medialib_test)

add_executable(${ExeFileN} ${_SRC_LIST})
target_compile_definitions(${ExeFileN} PRIVATE ${COMPILE_DEFINITIONS})
target_compile_options(${ExeFileN} PRIVATE ${COMPILE_OPTIONS_DEFAULT})

target_link_libraries(${ExeFileN} -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
